import React from 'react'
import './index.less'
/**
 * 类别：组件
 * 功能：提供我的钱包分类标签
 * 示例：我的银行卡，我的账单，钱包余额
 */
class Alert extends React.Component <IChildProps,void>{

    bgClick (){
        if (this.props.close) {
            this.props.close()
        }
    }
    render() {
        return (
        	<div className="alert-bg" onClick={this.bgClick.bind(this)}>
                <div className="spanc" />
                <div className="alert-view">
                    <div>{this.props.children}</div>
                </div>
        	</div>
        )
    }
}

export default Alert